﻿using System;
using System.Collections.Generic;
using System.Text;
using ShootSearch.Common;
using System.Xml.Serialization;
using System.Text.RegularExpressions;

namespace ShootSearch.Spiders
{
    [Serializable]
    public class UrlFilter: Rule
    {
        [XmlAttribute]
        public bool IsMatchRule { get; set; }

        public UrlFilter()
            : base()
        {
            IsMatchRule = true;
        }

        public UrlFilter(string pattern)
            : base(pattern)
        {
            IsMatchRule = true;
        }

        public UrlFilter(string pattern, bool isMatchRule)
            : base(pattern)
        {
            IsMatchRule = isMatchRule;
        }



        public UrlFilter(string pattern, RegexOptions options)
            : base(pattern,options)
        {
            IsMatchRule = true;
        }
    }
}
